<template>
	<view class="pageBg">
		<activity :list="list"></activity>
	</view>
</template>

<script>
	import activity from '@/components/activity/activity.vue';
	import { pageScroll } from '@/utils/mixins.js';
	export default {
		mixins: [pageScroll],
		components: {
			activity,
		},
		data() {
			return {};
		},
		onLoad() {
			this.init();
		},
		methods: {
			async init() {
				const { data } = await this.$api.articleLists();
				this.page.count = data.count;
				this.list = [...this.list, ...data.list];
			},
		},
	};
</script>

<style lang="scss" scoped>
	.pageBg {
	}
</style>
